package com.jiyun.login.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import nonapi.io.github.classgraph.json.Id;

/**
 * @author zqtao
 */
@Data
@Schema(description = "Users")
@TableName("users")
public class User {

    @Schema(description = "用户ID")
    @Id
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "部门")
    private Long department;

    @Schema(description = "角色")
    private Long role;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "备注")
    private String remark;

    @TableField(exist = false)
    private String dname;

    @TableField(exist = false)
    private String rname;

}
